<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@page import="java.util.Date"%>
<%Date date=new Date();%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
	<title>企业管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript" src="${ctxScript}/js/vaccine.js?<%=date.getTime()%>"></script>
	<script type="text/javascript">

	</script>
</head>
<body>
	<%--<form:form id="inputForm" modelAttribute="ent" action="${ctx}/bus/entAudit/uncheckedList" method="post" class="form-horizontal">--%>
		<input type="hidden" name="id" value="${ent.id}"/>
		<input type="hidden" name="auditFlag" value="1" id="auditFlag"/>
		<div style="padding: 15px 0 10px 10px;font-size: 18px;margin-left: 3%;font-family:'Arial Normal','Arial';font-weight: 400;font-style: normal;color: #33A5E7;text-rendering: optimizeLegibility;font-kerning: normal;"><img src="<%=basePath%>images/u268.png" style="width: 25px;height:25px;"/>&nbsp;&nbsp;基础信息</div>
		<table class="tableStyle" formMode="view" style="width: 98%;margin-left: 1%">
			<tr>
				<td style="width: 11%;text-align:right" class="viewModeEven">养殖场名称：</td>
				<td style="width: 20%;text-align:left">${ent.entName}</td>
				<td style="width: 11%;text-align:right" class="viewModeEven">养殖种类：</td>
				<td style="width: 20%;text-align:left">${dicInfoName} </td>
			</tr>
			<tr>
				<td style=";text-align:right" class="viewModeEven">存栏量：</td>
				<td style=";text-align:left">${initialDeposit}</td>
				<td style=";text-align:right" class="viewModeEven">年出栏量：</td>
				<td style=";text-align:left">${yearDeposit}</td>
			</tr>
			<tr>
				<%--<td style=";text-align:right" class="viewModeEven">养殖场类型：</td>--%>
				<%--<td style=";text-align:left">${fns:getDictLabel(ent.entTypeCode, 'entType','')}</td>--%>
				<td style=";text-align:right" class="viewModeEven">养殖规模：</td>
				<td style=";text-align:left">${fns:getDictLabel(ent.gradeType,'entGrade','')}</td>
				<td style=";text-align:right" class="viewModeEven">所在地区：</td>
				<td style=";text-align:left">${address}</td>
			</tr>
		</table>
		<div style="padding: 15px 0 10px 10px;font-size: 18px;margin-left: 3%;font-family:'Arial Normal','Arial';font-weight: 400;font-style: normal;color: #33A5E7;text-rendering: optimizeLegibility;font-kerning: normal;"><img src="<%=basePath%>images/u272.png" style="width: 25px;height:25px;"/>&nbsp;&nbsp;人员信息</div>
		<table class="tableStyle" formMode="view" style="width: 98%;margin-left: 1%">
			<tr>
				<td style="width: 11%;text-align:right" class="viewModeEven">法人姓名：</td>
				<td style="width: 20%;text-align:left">${ent.legalPerson}</td>
				<td style="width: 11%;text-align:right" class="viewModeEven">法人身份证号：</td>
					<td style="width: 20%;text-align:left">${ent.legalIdCard}</td>
			</tr>
			<tr>
				<td style="width: 11%;text-align:right" class="viewModeEven">联系人姓名：</td>
				<td style="width: 20%;text-align:left">${ent.user.name}</td>
				<td style="width: 11%;text-align:right" class="viewModeEven">联系电话：</td>
				<td style="width: 20%;text-align:left">${ent.user.mobile}</td>
			</tr>
		</table>

		<div style="padding: 15px 0 10px 10px;font-size: 18px;margin-left: 3%;font-family:'Arial Normal','Arial';font-weight: 400;font-style: normal;color: #33A5E7;text-rendering: optimizeLegibility;font-kerning: normal;"><img src="<%=basePath%>images/u304.png" style="width: 25px;height:25px;"/>&nbsp;&nbsp;银行卡信息</div>
		<table class="tableStyle" formMode="view" style="width: 98%;margin-left: 1%">
			<tr>
				<td style="width: 11%;text-align:right" class="viewModeEven">收款人：</td>
				<td style="width: 20%;text-align:left">${ent.payee}</td>
				<td style="width: 11%;text-align:right" class="viewModeEven">卡号：</td>
				<td style="width: 20%;text-align:left">${ent.bankCard}</td>
			</tr>
			<tr>
				<td style="width: 11%;text-align:right" class="viewModeEven">开户行：</td>
				<td style="width: 20%;text-align:left">${ent.openingBank}</td>
			</tr>
		</table>

		<div style="padding: 15px 0 10px 10px;font-size: 18px;margin-left: 3%;font-family:'Arial Normal','Arial';font-weight: 400;font-style: normal;color: #33A5E7;text-rendering: optimizeLegibility;font-kerning: normal;"><img src="<%=basePath%>images/u284.png" style="width: 25px;height:25px;"/>&nbsp;&nbsp;证件信息</div>
		<table class="tableStyle" formMode="view" style="width: 98%;margin-left: 1%" >
			<tr>
				<td style="width: 11%;text-align:right" class="viewModeEven">营业执照号：</td>
				<td style="width: 20%;text-align:left">${ent.cardNo}</td>
			</tr>

			<tr style="height: 200px">
				<td style="width: 11%;text-align:right" class="viewModeEven">营业执照照片：</td>
				<c:if test="${checkFlag=='1'||checkFlag=='0'}">
				<c:forEach items="${attachmentList}" var="attachment">
					<c:if test="${attachment.fileType=='business'}"	>
						<td style="margin-left:10px;text-align:left"><img src="${fns:getConfig('domain')}${attachment.filePath}?imageView2/2/w/200"  onclick="viewPhoto(this)"></td>
					</c:if>
				</c:forEach>
				</c:if>

				<c:if test="${checkFlag=='4'}">
					<c:forEach items="${attachmentList}" var="attachment">
						<c:if test="${attachment.fileType=='business'}"	>
							<td style="margin-left:10px;text-align:left"><img src="${fns:getConfig('domain')}${attachment.filePath}?imageView2/2/w/200"  onclick="viewPhoto(this)"></td>
						</c:if>
					</c:forEach>
				</c:if>

			</tr>

			<tr>
				<td style="width: 11%;text-align:right" class="viewModeEven">防疫条件合格证号：</td>
				<td style="width: 20%;text-align:left">${ent.preventNo}</td>
			</tr>

			<tr style="height:200px">
						<td style="text-align:right;" class="viewModeEven">防疫条件合格照片：</td>
                        <c:if test="${checkFlag=='1'||checkFlag=='0'}">
                        <c:forEach items="${attachmentList}" var="attachment">
                            <c:if test="${attachment.fileType=='epidemic'}"	>
                                <td style="margin-left:10px;text-align:left"><img src="${fns:getConfig('domain')}${attachment.filePath}?imageView2/2/w/200"  onclick="viewPhoto(this)"></td>
                            </c:if>
                        </c:forEach>
                        </c:if>
                        <c:if test="${checkFlag=='4'}">
                            <c:forEach items="${attachmentList}" var="attachment">
                                <c:if test="${attachment.fileType=='epidemic'}"	>
                                    <td style="margin-left:10px;text-align:left"><img src="${fns:getConfig('domain')}${attachment.filePath}?imageView2/2/w/200"  onclick="viewPhoto(this)"></td>
                                </c:if>
                            </c:forEach>
                        </c:if>
			</tr>

			<tr style="height: 200px">
				<td style="width: 11%;text-align:right" class="viewModeEven">其他证件信息：</td>
				<c:if test="${checkFlag=='1'||checkFlag=='0'}">
					<c:forEach items="${attachmentList}" var="attachment">
						<c:if test="${attachment.fileType=='other'}"	>
							<td style="margin-left:10px;text-align:left"><img src="${fns:getConfig('domain')}${attachment.filePath}?imageView2/2/w/200"  onclick="viewPhoto(this)"></td>
						</c:if>
					</c:forEach>
				</c:if>
				<c:if test="${checkFlag=='4'}">
					<c:forEach items="${attachmentList}" var="attachment">
						<c:if test="${attachment.fileType=='other'}"	>
							<td style="margin-left:10px;text-align:left"><img src="${fns:getConfig('domain')}${attachment.filePath}?imageView2/2/w/200"  onclick="viewPhoto(this)"></td>
						</c:if>
					</c:forEach>
				</c:if>
			</tr>

		</table>
    	<c:if test="${auditStatus=='2'}">
        <div style="padding: 15px 0 10px 10px;font-size:18px;margin-left: 3%;font-family:'Arial Normal','Arial';font-weight: 400;font-style: normal;color:red;text-rendering: optimizeLegibility;font-kerning: normal;"><img src="<%=basePath%>images/bohui.png" style="width: 25px;height:25px;"/>&nbsp;&nbsp;驳回原因</div><br>
	            <p style="text-align: left;margin-left: 3%;font-family:'Arial Normal';">${auditOpinion}</p>
   		 </c:if>
	<div style="padding: 15px 0 10px 10px;"></div>
</body>
</html>